<?php

namespace app\common\model;

use think\model\concern\SoftDelete;

class RobotAnalysis extends \think\Model
{
    use SoftDelete;

    protected $table = 'db_robot_analysis';

    protected $jsonAssoc = true;

    protected $autoWriteTimestamp = true;

    protected $schema = [
        'id' => 'int',
        'create_time' => 'int',
        'update_time' => 'int',
        'delete_time' => 'int',
        'pubid' => 'varchar',
        'reference_1' => 'varchar',
        'reference_2' => 'varchar',
        'score_1' => 'varchar',
        'score_2' => 'varchar',
        'content_1' => 'longtext',
        'content_2' => 'longtext',
        'robot_id' => 'int',
        'robot_conversation_message_id' => 'int',
    ];

    public $getters = [
        
    ];

    /**
     * 关联模型robot
     */
    public function robot()
    {
        return $this->belongsTo(Robot::class );
    }

    /**
     * 关联模型robotConversationMessage
     */
    public function robotConversationMessage()
    {
        return $this->belongsTo(RobotConversationMessage::class );
    }
}
